<?php
echo $this->Session->flash();
?>


<table border="1" id="tabla">
    <thead>
        <tr>
            <td>Código:</td>
            <td>Nombre:</td>
            <td>Matrícula</td>
            <td>Departamento:</td>
            <td>Municipio:</td>
            <td>Vereda:</td>
            <td></td>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($predios as $prop): ?>
            <tr>
                <td><?php echo $prop['Property']['codigo'] ?></td>
                <td><?php echo $prop['Property']['nombre'] ?></td>
                <td><?php echo $prop['Property']['matricula'] ?></td>
                <td><?php echo $prop['Departament']['name'] ?></td>
                <td><?php echo $prop['City']['name'] ?></td>
                <td><?php echo $prop['Property']['vereda'] ?></td>
                <td>
                    <?php
                    echo $ajax->link('Propietarios', array('controller' => 'owners', 'action' => 'index', $prop['Property']['id'], $proyect_id), array('update' => 'lista_predios', 'indicator' => 'loading'));
                    ?>
                </td>
            </tr>
        <?php endforeach; ?>
    </tbody>
</table>
